package com.leadingsoft.pwxk.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.leadingsoft.pwxk.model.Pollutions;
import com.leadingsoft.pwxk.repository.PollutionsRepository;
import com.leadingsoft.pwxk.services.AbstractService;

@Service
public class PollutionsServiceImpl extends AbstractService<Pollutions> {

	@Autowired
	PollutionsRepository pollutionsRepository;

	@Override
	public void saveAll(List<Pollutions> models) {
		pollutionsRepository.saveAll(models);
	}

	@Override
	public void deleteAll() {
		pollutionsRepository.deleteAll();
	}

	@Override
	public void save(Pollutions model) {
		pollutionsRepository.save(model);
	}

	@Override
	public Long getCount() {
		return pollutionsRepository.count();
	}
}
